import request from "@/utils/system/request.js"

// 多项式拟合
export function polynomialFit(data){
    return request({
        url   : "/timeseries/polynomial-fit",
        method: "post",
        data,
    })
}

// 一元回归
export function linearRegression(data){
    return request({
        url   : "/timeseries/linear-regression",
        method: "post",
        data,
    })
}

// 移动平均
export function movingAverage(data){
    return request({
        url   : "/timeseries/moving-average",
        method: "post",
        data,
    })
}

// 指数平滑
export function exponentialSmoothing(data){
    return request({
        url   : "/timeseries/exponential-smoothing",
        method: "post",
        data,
    })
}
